package io.github.cocoa.module.socket.controller.admin.sample.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import io.github.cocoa.framework.excel.core.annotations.DictFormat;
import io.github.cocoa.framework.excel.core.convert.DictConvert;
import io.github.cocoa.framework.excel.core.convert.JsonConvert;
import io.github.cocoa.module.socket.enums.DictTypeConstants;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Set;

/**
 * 示例信息 Excel VO
 *
 * @author James
 */
@Data
public class SampleInfoExcelVO {

    @ExcelProperty("示例主键")
    private Long id;

    @ExcelProperty("示例名称")
    private String name;

    @ExcelProperty(value = "示例编号数组", converter = JsonConvert.class)
    private Set<Long> sampleIds;

    @ExcelProperty(value = "开启状态", converter = DictConvert.class)
    @DictFormat(DictTypeConstants.CONFIG_TYPE)
    private Integer status;

    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
